Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use floating point for vector coordinates #523

Merged
merged 1 commit into from
Sep 8, 2024
Merged

Use floating point for vector coordinates #523

merged 1 commit into from
Sep 8, 2024

Conversation

JD557
Copy link
Owner

@JD557 JD557 commented Sep 8, 2024

I did some benchmarks and the impact of this change is negligible.

However, it does make things look much nicer. This was quite obvious in the example, where the circle transformations were much smoother. Now everything looks great 👍

This PR also changes the Matrix integer methods. In hindsight, returning an Int there was a mistake: There was no performance benefit, it was error prone and it didn't let users pick between ceiling, flooring or rounding.

@JD557 JD557 added this to the 0.6.2 milestone Sep 8, 2024
@JD557 JD557 merged commit 09e9334 into master Sep 8, 2024
15 checks passed
@JD557 JD557 deleted the precise-raster branch September 8, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant